package drrr.orm;

import java.util.List;

/**
 * Created by lirance on 15/5/19.
 */
public class RoomChatListService extends Service {

    @Override
    public List<Entity> getAllEntities() {
        return getAllDao().getRoomChatListDao().getAllRoomChatLists();
    }

    public List<Entity> getEntitiesbyID(int roomId) {
        return getAllDao().getRoomChatListDao().getRoomChatListbyId(roomId);
    }

    @Override


    public void insert(Entity entityRef) {
        getAllDao().getRoomChatListDao().insert((RoomChatListEntity) entityRef);
    }

    public void delete(Entity entity) {
        getAllDao().getRoomChatListDao().delete((RoomChatListEntity) entity);
    }

    public void update(Entity entity) {
        getAllDao().getRoomChatListDao().update((RoomChatListEntity) entity);
    }

}
